package com.gragra.structures.generators.tests;
import static org.junit.Assert.*;
import org.junit.Test;
import com.gragra.structures.SentenceStructure;
import com.gragra.structures.generators.SplitDownAndTokenPunctuation;
import com.gragra.util.StringToInt;
public class TestSplitDownAndTokenPunctuation
{
	@Test
	public void testMake()
	{
		SentenceStructure sest = (SentenceStructure) new SplitDownAndTokenPunctuation().make("., HANS-PETER !");
		assertEquals(StringToInt.reverse(sest.getWord(1)),",");
		assertEquals(StringToInt.reverse(sest.getWord(2)),"hans-peter");
	}
}
